//
// Unihan Input Method
//
// Copyright © 2002-2007 Sun Wah Linux Ltd.
//
//
// This library is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
// USA
//
// $Id: unihan_xaux.h 796 2007-06-30 19:00:01Z roger $
//

/*
** $Id: unihan_xaux.h 796 2007-06-30 19:00:01Z roger $
*/

#ifndef __UNIHAN_XAUX_H
#define __UNIHAN_XAUX_H

#define UNIHAN_ENGINE_GET_IM_LIST	1001
#define UNIHAN_ENGINE_CONV_OFF		1002
#define UNIHAN_ENGINE_SWITCH_IM		1003
#define UNIHAN_ENGINE_TOGGLE_WIDTH	1004	//depricate
#define UNIHAN_ENGINE_TOGGLE_PUNCCE	1005	//depricate
#define UNIHAN_ENGINE_SET_DEFAULT_IM	1006
#define UNIHAN_ENGINE_SET_ENCODING	1007
#define UNIHAN_ENGINE_SET_TCSC_MODE	1008
#define UNIHAN_ENGINE_TOGGLE_PUNC 	1009	//depricate
#define UNIHAN_ENGINE_TOGGLE_US		1010	//depricate
#define UNIHAN_ENGINE_SWITCH_NEXT_IM	1011
#define UNIHAN_ENGINE_SWITCH_PREV_IM	1012
#define UNIHAN_ENGINE_CHECK_MODULE_INFO	1013	//2006.6.5 by ski.
#define UNIHAN_ENGINE_SET_PHRASE_MODE	1014
#define UNIHAN_ENGINE_CAND_PAGEDOWN 1021
#define UNIHAN_ENGINE_CAND_PAGEUP   1022
#define UNIHAN_ENGINE_CAND_COMMIT   1023
#define UNIHAN_ENGINE_EXTRA_CANDS   1024
#define UNIHAN_ENGINE_COMMIT		1900
#define UNIHAN_ENGINE_US_KEYBOARD	1901
#define UNIHAN_ENGINE_US_KEYBOARD_SET_STATE		19011
#define UNIHAN_ENGINE_SEND_BUFFER	1902	//depricate
#define UNIHAN_ENGINE_PROPERTY_TOGGLED	1903
#define UNIHAN_ENGINE_PROPERTY_REGISTER 1904

#define UNIHAN_ENGINE_SET_SYMUSER	1910
#define UNIHAN_ENGINE_GET_SYMUSER	1911

#define UNIHAN_ENGINE_IM_CONFIG_CHANGE  1100	//depricate
#define UNIHAN_ENGINE_SET_SYMBOL_LIST	1101	//depricate
#define UNIHAN_ENGINE_SET_WORD_LIST	1102	//depricate
#define UNIHAN_ENGINE_IM_SET_PROPS	1103

#define UNIHAN_ENGINE_DEMO_EXPIRED	1998
#define UNIHAN_ENGINE_INVALID_KEY	1999

#define UNIHAN_AUX_STATUS_START_NOTIFY	2000
#define UNIHAN_AUX_STATUS_GET_PROPS	2001
#define UNIHAN_AUX_STATUS_SWITCH_IM     2002
#define UNIHAN_AUX_STATUS_PREV_IM	2003
#define UNIHAN_AUX_STATUS_NEXT_IM	2004
#define UNIHAN_AUX_STATUS_FULLWIDTH     2005	//depricate
#define UNIHAN_AUX_STATUS_HALFWIDTH	2006	//depricate
#define UNIHAN_AUX_STATUS_ENGLISHPUNC	2007	//depricate
#define UNIHAN_AUX_STATUS_CHINESEPUNC	2008	//depricate
#define UNIHAN_AUX_STATUS_TCSC_MODE	2009	
#define UNIHAN_AUX_STATUS_PUNC_KEYBOARD	2010	//depricate
#define UNIHAN_AUX_STATUS_US_KEYBOARD	2011	//depricate
#define UNIHAN_AUX_STATUS_BEEP		2012
#define UNIHAN_AUX_PREEDIT_DRAW         2013
#define UNIHAN_AUX_PREEDIT_DONE         2014
#define UNIHAN_AUX_PREEDIT_HIDE		2015
#define UNIHAN_AUX_PREEDIT_CARET    2016
#define UNIHAN_AUX_LOOKUP_START_NOTIFY	2020
#define UNIHAN_AUX_LOOKUP_DRAW		2021
#define UNIHAN_AUX_LOOKUP_DONE		2022
#define UNIHAN_AUX_LOOKUP_HIDE		2023
#define UNIHAN_AUX_PROPERTY_REGISTER 2030
#define UNIHAN_AUX_PROPERTY_UPDATE	2031
#define UNIHAN_AUX_COMMITTED_STRING 2040

#define UNIHAN_AUX_TOOLTIP_DRAW		2102
#define UNIHAN_AUX_TOOLTIP_FULLWIDTH	2105
#define UNIHAN_AUX_TOOLTIP_HALFWIDTH	2106
#define UNIHAN_AUX_TOOLTIP_ENGLISHPUNC	2107
#define UNIHAN_AUX_TOOLTIP_CHINESEPUNC	2108
#define UNIHAN_AUX_TOOLTIP_TCSC_MODE	2109

#define UNIHAN_AUX_LOST_FOCUS		2999
#define UNIHAN_AUX_PUNC_KEYBOARD_SHOW	3031	//depricate
#define UNIHAN_AUX_PUNC_KEYBOARD_HIDE	3032	//depricate
#define UNIHAN_AUX_US_KEYBOARD_SHOW	3033	//depricate
#define UNIHAN_AUX_US_KEYBOARD_HIDE	3034	//depricate

#define UNIHAN_AUX_UNISPIM_SET		4000	//depricate

#define UNIHAN_AUX_UNSET_FOCUS		5000
#define UNIHAN_AUX_SET_FOCUS		5001

#define AUX_STATUS_CLASS_NAME "com.sw-linux.unihan2.StatusAux"
#define AUX_LOOKUP_CLASS_NAME "com.sw-linux.unihan2.LookupAux"

typedef struct _UnihanLookup {
	void *dlh;
} UnihanLookup;

typedef struct _UnihanStatus {
	void *dlh;
} UnihanStatus;

typedef struct _UnihanAux {
	void *dlh;
} UnihanAux;

typedef struct _UnihanClient {
	struct _UnihanLookup *lookup;
	struct _UnihanStatus *status;
	struct _UnihanAux *aux;
} UnihanClient;

#define STR_BRK_POINTER "0x00"

#endif /* __UNIHAN_XAUX_H */

// vi:ts=4:sw=4:nowrap:cin:expandtab
